package com.niiwoo.civet.account.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 换绑卡审核状态
 * Created by wangjichao on 2017/11/18.
 */
@AllArgsConstructor
@Getter
public enum BankCardRebindAuditStatusEnum {
    INIT((byte)0,"初始状态-未提交到审核"), WAITING_APPROVE((byte)1,"待审核"),
    PASS((byte)2,"审核通过"),REJECT((byte)3,"审核不通过");

    private Byte value;
    private String desc;

    public static BankCardRebindAuditStatusEnum enumOf(Byte value) {
        for (BankCardRebindAuditStatusEnum type : values()) {
            if (type.value.equals(value)) {
                return type;
            }
        }
        throw new NoSuchEnumValueException("BankCardRebindAuditStatusEnum:" + value);
    }

}
